package com.kexuexiong.demo.bear.common.dto;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class PageDTO<T> {

    @ApiModelProperty("pageSize")
    private Integer pageSize = 10;

    @ApiModelProperty("pageNum")
    private Integer pageNum = 1;

    public Page<T> page() {
        return new Page<T>(this.pageNum, this.pageSize);
    }
}
